import request from '@/utils/request'

// 查询全部出库商品
export function listAllGoodsOutStorage() {
  return request({
    url: '/storage/goodsOutStorage/listAll',
    method: 'get'
  })
}

// 分页查询商品出库列表
export function listGoodsOutStorage(query) {
  return request({
    url: '/storage/goodsOutStorage/pageList',
    method: 'get',
    params: query
  })
}

// 查询商品出库详细
export function getGoodsOutStorage(id) {
  return request({
    url: '/storage/goodsOutStorage/query/' + id,
    method: 'get'
  })
}

// 新增商品出库
export function addGoodsOutStorage(data) {
  return request({
    url: '/storage/goodsOutStorage/add',
    method: 'post',
    data: data
  })
}

// 修改商品出库
export function updateGoodsOutStorage(data) {
  return request({
    url: '/storage/goodsOutStorage/edit',
    method: 'put',
    data: data
  })
}

// 删除商品出库
export function delGoodsOutStorage(ids) {
  return request({
    url: '/storage/goodsOutStorage/remove/' + ids,
    method: 'delete'
  })
}

export function updateOutOfStorage(data) {
  return request({
    url: '/storage/goodsOutStorage/updateOutOfStorage',
    method: 'post',
    data
  })
}
